package org.ccay.manage.log.service;

import java.io.IOException;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import org.ccay.core.base.PageVO;
import org.ccay.core.exception.ApplicationException;
import org.ccay.log.LogSearchVO;


/**
 * 异常日志查询服务
 * Created：2013-12-09
 * @author chaowangbang
 * 
 */

@Path("/search")
@Produces("application/json")
public interface ILogSearchService {
	/**
	 * TODO 异常日志查询	
	 * @author chaowangbang
	 * @since 2013-12-9
	 * showTotalRows 是否获取总记录数
	 * pageType 翻页类型，如首页、前页、下页、末页、
	 * @param exceptionVO
	 * @param page
	 * @return
	 * @throws ApplicationException
	 */
	@GET
	@Path("/list/{showTotalRows}/{readBegin}/{readStep}")
	public LogSearchVO findLogInfo(
			  @PathParam("showTotalRows") int showTotalRows, 
			  @PathParam("readBegin") long readBegin,
			  @PathParam("readStep") byte readStep,
			  @PathParam("") PageVO pageVO, @QueryParam("") LogSearchVO logSearchVO)
			throws ApplicationException, IOException;
}